package com.itic.appbase.framework.type;

public enum YwymTimerType {
	custom("custom","自定义"),persistent("persistent","素材间隔");
	private String type;
	private String name;
	YwymTimerType(String type,String name){
		this.type = type;
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static YwymTimerType getYwymTimerType(String type){
		YwymTimerType YwymTimerType = null;
		switch(type){
		case "custome":
			YwymTimerType = YwymTimerType.custom;
			break;
		case "persistent":
			YwymTimerType = YwymTimerType.persistent;
			break;
			default: break;
		}
		return YwymTimerType;
	}
}
